home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / SYQUEST / SQHDX / GETBPB.C < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  482 b   |  31 lines

  1. /* Test driver calls */
  2.  
  3. #include    "osbind.h"
  4. #include    "getstart.h"
  5.  
  6. main()
  7. {
  8.     int    i;
  9.     BPB*    blk;
  10.     long    changed;
  11.     int    drv, ret;
  12.  
  13.     for (i = 2; i < 8; i++) {
  14.         drv = 'A' + i;
  15.         Cconout(drv);
  16.         if (changed = Mediach(i)) {
  17.             ret = (int)changed + '0';
  18.             Cconws(" -- Medium has been changed -- ");
  19.             Cconout(ret);
  20.             Cconws("\r\n");
  21.         /**/
  22.             blk = (BPB *)Getbpb(i);
  23.         /**/
  24.         } else {
  25.             Cconws(" -- Medium has not changed\r\n");
  26.         }
  27.         /**/
  28.     }
  29.     Pterm0();
  30. }
  31.